using System;
using System.Collections.Generic;

namespace Nairo.Parser.Dom
{
	public class AspNetCodeBlock : AbstractBlock
	{
		string innerText;
		
		public AspNetCodeBlock(FileUnit file, string innerText, INode parent, object userData)
			: base(file, parent, new List<INode>(), userData)
		{
			this.innerText = innerText;
		}
		
		public string InnerText {
			get { return innerText; }
			set { innerText = value; }
		}
		
		public override INode GetTag(string name)
		{
			throw new NotSupportedException("An ASP .NET Code Tag has no tag name!");
		}
		
		public override INode[] GetTags(string name)
		{
			throw new NotSupportedException("An ASP .NET Code Tag has no tag name!");
		}
		
		public override object AcceptChildren(IDomVisitor visitor, object data)
		{
			throw new NotImplementedException();
		}
		
		public override object AcceptVisitor(IDomVisitor visitor, object data)
		{
			return visitor.VisitAspNetCodeBlock(this, data);
		}
	}
}
